package com.bdilab.iot.service;

import com.bdilab.iot.dto.roleDto.CreateRoleDto;
import com.bdilab.iot.dto.roleDto.RoleWithPermission;
import com.bdilab.iot.dto.roleDto.UpdateRoleDto;
import com.bdilab.iot.model.Role;

import java.util.List;

/**
 * @author WangNing
 * @version 1.0
 * @date 2020/8/1 17:19
 */
public interface RoleService {

    List<Role>  getAllRole();

    Role createRole(CreateRoleDto createRoleDto);

    RoleWithPermission getRole(Long id);

    void deleteRole(Long id);

    Role updateRole(UpdateRoleDto updateRoleDto, Long id);
}
